import onnxruntime
import numpy as np


ort_session = onnxruntime.InferenceSession('E:\\Downloads\\deep_learning_for_cv-master\\deep_learning_for_cv-master\\models\\model.onnx')

# x = np.random.randn(1, 9).astype(np.float32)
# x = torch.randn(9).numpy()
x = np.random.randn(9).astype(np.float32)

# onnx runtime 输入
ort_inputs = {'input': x}

# onnx runtime 输出
ort_output = ort_session.run(['output'], ort_inputs)[0]

print(ort_output)